<template>
  <div class="row vw-100 vh-100">
    <div class="flex" style="width: 250px">
      <!-- 左侧菜单栏 -->
      <SidebarNav :menus="store.menus" />
    </div>
    <div class="flex" style="width: calc(100% - 250px)">
      <div class="row">
        <div class="container-fluid">
          <div class="top">
            <!-- 顶部导航 -->
            <HeaderNav />
          </div>
          <div class="p-3">
            <!-- 主体内容 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import SidebarNav from '@/components/SidebarNav.vue'
import HeaderNav from '@/components/HeaderNav.vue'
import { useMenusStore } from '@/store/menus'

export default defineComponent({
  components: {
    SidebarNav,
    HeaderNav
  },
  setup() {
    const store = useMenusStore();

    return {
      store
    }
  }
})
</script>

<style scoped></style>
